<?php
/**
 * Web Footer
 * @filesource
 */
/**
 * Namespace
 */
namespace plurious\apps\web\controller\common;
/**
 * Dependencies
 */
use framework\engine\Controller;
/**
 * Footer Controller for the Web Context
 * 
 * Extends Controller.
 * 
 * @author Randy Casburn <randy@plurious.com>
 * @copyright Copyright Plurious Software, all rights reserved
 * @license MIT
 * @license http://www.opensource.org/licenses/mit-license.html
 * @link http://plurious.com/framework/documentation/classes/Front.html
 * @version 2.1
 * 
 * @uses framework\engine\Controller (extends - therefore required)
 */
class Footer extends Controller {
    /**
     * Allows caching of the page
     * 
     * Do not cache dynamic content.
     * @var bool $isCachable
     */
    protected $isCachable = true;
    /**
     * Sets up the footer display
     */
    public function index() {
        $this->getLanguage('common/footer');

        $this->data['contact_href'] = 'contact';
        $this->data['sitemap_href'] = 'sitemap';
        $this->data['account_href'] = 'account';

        $this->data['text_footer_title'] = $this->getText('text_footer_title');
        $this->data['text_contact'] = $this->getText('text_contact');
        $this->data['text_sitemap'] = $this->getText('text_sitemap');
        $this->data['text_account'] = $this->getText('text_account');
        $this->data['text_powered_by'] = $this->getText('text_powered_by', array('My Company',date('Y', time())));

        $this->render();
    }

}

?>